package de.homelabs.hlmodules.cms.content.domain;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;


@XmlAccessorType(XmlAccessType.FIELD)
abstract class HLPageContent {

	@XmlElement(required = false)
	private int id;
	@XmlAttribute
	private HLPageType type = HLPageType.TYPE_HTML;			//default
	@XmlElement(required = false)
	private String templateKey;
	
	/*******************
	 * setter / getter *
	 *******************/
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public HLPageType getType() {
		return type;
	}
	public void setTyp(HLPageType type) {
		this.type = type;
	}
	public String getTemplateKey() {
		return templateKey;
	}
	public void setTemplateKey(String templateKey) {
		this.templateKey = templateKey;
	}
}
